<!--#include file="Config.asp" -->
<!--#include file="_Inc/_Fun_Base64.asp"-->
<!--#include file="UserCheck.asp"-->
<%

'base64Encode初始化
call initCodecs
'使用base64Encode加密
password=base64Encode(trim(request.form("Pwd")))

'用户名和密码非空

if Trim(request("UserName"))<>"" And Trim(request("Pwd"))<>"" then
sql="select * from Users where id is null"
rs.open sql,conn,1,3
rs.addnew
rs("UserName")=Trim(request("UserName"))
rs("password")=password
rs("RightVisit")=int(request("RightVisit"))
rs("RightAdd")=int(request("RightAdd"))
rs("RightEdit")=int(request("RightEdit"))
rs("RightDel")=int(request("RightDel"))
rs("RightIncorporate")=int(request("RightIncorporate"))
rs("RightAdmin")=int(request("RightAdmin"))
rs("RealName")=Trim(request.form("RealName"))
rs("Sex")=Trim(request.form("Sex"))
rs("Nation")=Trim(request.form("Nation"))
rs("Political")=Trim(request.form("Political"))
rs("Birthplace")=Trim(request.form("Birthplace"))
rs("BirthYear")=Trim(request.form("BirthYear"))
rs("BirthMonth")=Trim(request.form("BirthMonth"))
rs("BirthDay")=Trim(request.form("BirthDay"))
rs("Marriage")=Trim(request.form("Marriage"))
rs("Qualification")=Trim(request.form("Qualification"))
rs("Standing")=Trim(request.form("Standing"))
rs("Weight")=Trim(request.form("Weight"))
rs("NowAddr")=Trim(request.form("NowAddr"))
rs("HomeAddr")=Trim(request.form("HomeAddr"))
rs("QQ")=Trim(request.form("QQ"))
rs("MSN")=Trim(request.form("MSN"))
rs("Tel")=Trim(request.form("Tel"))
rs("Mobile")=Trim(request.form("Mobile"))
rs("HouseholdPlace")=Trim(request.form("HouseholdPlace"))
rs("Email")=Trim(request.form("Email"))
rs("CredentialsType")=Trim(request.form("CredentialsType"))
rs("CredentialsNum")=Trim(request.form("CredentialsNum"))
'rs("")=Trim(request.form(""))
rs.update
ID=int(rs("ID"))
rs.close
msg="保存成功"
response.redirect "UserList.asp"
Else
msg="信息不全"
response.redirect "UserADD.asp?msg="&msg

end if

%>
